let now = new Date()
now.setFullYear(now.getFullYear()+1)

let endDate = new Date()

var newnew = endDate||now
console.log(newnew)